<template>
  <div>
    <h1>查看登录信息</h1>

    <input type="button" value="用户-投资管理" @click="paths" >
    <table>
        <tr>
          <td>用户名</td>
          <td>{{info.UserName}}</td>
        </tr>
        <tr>
          <td>密码</td>
          <td>******</td>
        </tr>
        <tr>
          <td>状态</td>
          <td>{{info.States}}</td>
        </tr>
       
    </table>
  </div>
</template>

<script setup lang="ts">

  import axios from 'axios';
    import {reactive,toRefs,onMounted} from 'vue'
    import { useUserStors } from '@/stors/user';
import router from '@/router';

    const useStors=useUserStors();
    let data:any=reactive({
      info:{  
      }
    })

    let {info} =toRefs(data);

    onMounted(()=>{
      getList();
    })

    const paths=()=>{
        router.push('/uuserMoney');
    }

   const getList=()=>{
    axios({
      url:'/api/User/ShowUser',
      method:'get',
      params:{id:useStors.userInfo.Uid},
    }).then(res=>{
      console.log(res.data);
      
      info.value=res.data

    }).catch(err=>{

    })
   }



</script>

<style scoped>

</style>